﻿@model Rated.DAL.Db.RatedItem
<table class="reviewListTable dataTable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>
                Review Date / Time
            </th>
           <th>
                Reviewer Name
            </th>
            <th>
                Rating
            </th>
            <th>
                Review Title
            </th>
           <th>
                Review Text
            </th>
           <th>
                Response
            </th>
        </tr>
    </thead>
    <tbody>
        @{
            foreach (var review in Model.Reviews.OrderByDescending(o=>o.Timestamp))
            {
            <tr>
                <td>@review.Timestamp.Value.ToString("dd MMM yy [HH:mm]")
                </td>
                <td>@review.UserProfile.FullName
                </td>
                <td>@review.Rating
                </td>
                <td>@review.Title
                </td>
                <td>@review.Description
                </td>
                <td>@review.Response
                </td>
            </tr>
            }    
        }
    </tbody>
</table>
